package com.mbc.rmt.dao;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import com.mbc.rmt.data.AddCodeDataList;
import com.mbc.rmt.data.AddCodeNDetail;
import com.mbc.rmt.data.AddCodeNDetailDataList;
import com.mbc.rmt.entities.AddCode;
import com.mbc.rmt.entities.AddCodeRpt;

public interface AddCodeDAO {
	public void create(AddCode entity)throws SQLException;
	public void update(AddCode entity)throws SQLException;
	public void delete(long key)throws SQLException;
	public AddCode find(long key)throws SQLException;
	public List<AddCode> findAll()throws SQLException;
	public AddCode findByCode(String code, long branchId)throws SQLException;
	public AddCodeDataList findAddCodes(AddCode cri)throws SQLException;
	public AddCodeNDetailDataList findAddCodeNDetails(AddCodeNDetail cri)throws SQLException;
	
	//MBC Begin
	ResultSet prepareAddCodeReport(AddCodeRpt info) throws SQLException;
	public AddCode getAddCode(String code,long branchId)throws SQLException;
	//MBC End
}
